def call(project, branch){

    def fg100QTTemplate = [
        'label' : 'FG100_QT5_BIONIC',
        'image' : '192.168.9.38:18082/yidao/jnlp-slave:fg100_qt5_bionic',
//        'gitUrl' : 'ssh://gerrit@192.168.30.243:29418/fg100/remote_control',
//        'gitUrl' : 'ssh://git@192.168.9.61:10022/fg100/remote_control.git',
        'gitUrl' : 'http://192.168.9.61/fg100/remote_control.git',
        'branch' : branch,
        'scriptDir' : 'crobot',
        'buildScript' : 'qmake && make',
        'packageScript' : 'createDeb.sh',
        'cleanScript' : '',
        'artifactDir' : 'bin',
        'artifactName' : 'fgremote*.deb',
        'artifact' : 'fgremote*.deb',
        'artifactory' : "FG100Robot/${project}",
        'cleanCmd' : '',
        'cherryPickGit' : 'ssh://gerrit@192.168.30.243:29418/fg100/remote_control',
        'cherryPickDir' : './',
        'webhookUrl' : 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=8fae9b55-dcb9-4e6e-b7a9-656934cb9f6a'
    ]

    def fg100QTTemplateWin = [
        'label' : 'WINSERVER_VS2015',
        'gitUrl' : 'ssh://gerrit@192.168.30.243:29418/fg100/remote_control',
        'branch' : branch,
        'scriptDir' : 'crobot',
        'buildScript' : 'CALL %vcvarsall% amd64 && %qmake% crobot.pro -spec win32-msvc "CONFIG+=qtquickcompiler" && %jom% qmake_all && %jom% -f Makefile.Release',
        'packageScript' : '%iscc% G:\\innosetup\\crobot.iss',
        'cleanScript' : '',
        'artifactDir' : 'bin',
        'artifactName' : 'FgCrobotSetup.exe',
        'artifact' : 'setup\\FgCrobotSetup.exe',
        'artifactory' : "FG100Robot/${project}",
        'cleanCmd' : '',
        'cherryPickGit' : 'ssh://gerrit@192.168.30.243:29418/fg100/remote_control',
        'cherryPickDir' : './',
        'webhookUrl' : ''
    ]

     def buildTemplate = [
        'remoteControl' : fg100QTTemplate,
        'remoteControlWin' : fg100QTTemplateWin
    ]

    return buildTemplate.get(project)

}